package com.aaa.project.controller;


import com.aaa.project.service.IEPermissionService;
import com.aaa.util.Result;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 左侧菜单地址 前端控制器
 * </p>
 *
 */
@RestController
@RequestMapping("/e-permission")
@Api(tags = "权限信息 API")
public class EPermissionController {
    // 查询所有的菜单的信息   对应好层级关系
    // [{ children=[{ children=[{}]}]},{},{}]
    @Autowired
    private IEPermissionService permissionService;
    @GetMapping("leftMenus")
    public Result leftMenus(){
       return new Result(permissionService.getAllMenus());
    }




}

